home *** CD-ROM | disk | FTP | other *** search
- Path: mini01.vejlees.dk!inf94a02
- From: inf94a02@mini01.vejlees.dk (Jonas Andersen)
- Newsgroups: comp.lang.c
- Subject: Re: HELP! #include <math.c> question
- Date: 29 Jan 1996 21:13:34 GMT
- Organization: News Server at UNI-C, Danish Computing Centre for Research and Education.
- Message-ID: <4ejd9u$mru@news.uni-c.dk>
- References: <Pine.SV4.3.91.960120135347.12016A-100000@larry>
- NNTP-Posting-Host: mini01.vejlees.dk
- X-Newsreader: TIN [version 1.2 PL1]
-
- John Marsh (libjrm@emory.edu) wrote:
- : Hi folks-
- : When I try to compile it, I get an "Undefined symbol (sqrt) - Symbol
- : referencing error" message. Shouldn't <math.h> recognize sqrt? I must be
-
- Did you remember to link with not math-lib? I don't think so. You might
- wanna try e.g. : gcc foo.c -lm
-
- m for the math lib.
-
- Jones
-